package assert

import "testing"

func Equal[T comparable](t *testing.T, got T, want T, info ...string) {
	t.Helper()

	var s string
	if len(info) == 0 {
		s = ""
	} else {
		s = info[0] + ". "
	}

	if got != want {
		t.Errorf("%sgot: '%v'; want: '%v'", s, got, want)
	}
}

func NotEqual[T comparable](t *testing.T, got T, notWant T, info ...string) {
	t.Helper()

	var s string
	if len(info) == 0 {
		s = ""
	} else {
		s = info[0] + ". "
	}

	if got == notWant {
		t.Errorf("%sgot: '%v'; not want: '%v'", s, got, notWant)
	}
}
